package top.zt9.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qf.model.StandardReport;
import com.qf.model.StandardSubmit;

import java.io.IOException;
import java.util.Map;

/**
 * @Author ztf
 * @Date 9:53 2021/11/27
 **/

public interface ElasticsearchService {

    /**
     * 保存日志到es
     * @param standardSubmit
     */
    public void saveLog(StandardSubmit standardSubmit) throws IOException;

    /**
     * 修改es中保存的数据
     * @param standardreport
     */
    public void updateLog(StandardReport standardreport) throws IOException;

    /**
     * 查询日志条数
     * @param param
     * @return
     */
    Long logsCount(Map param) throws IOException;
}
